<%@page import="RssEasy.Core.CookieHelper"%>
<%@page import="RssEasy.Core.Encrypt"%>
<%@page import="Model.User.UserList"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%
    UserList app = new UserList(pageContext);
    app.request();
    //验证码比较
    String note = Encrypt.Md532(app.get("note"));
    CookieHelper cook = new CookieHelper(request, response);
    String key = cook.Get("key");
    app.remove("agreement");
    if (note.equals(key)) {
        app.remove("note");
        String account = app.get("account");
        String pwd = Encrypt.Md532(account + app.get("pwd"));
//        String shiid = app.get("shiid");
//        String xianid = app.get("xianid");
//        if (xianid.equals("")) {
//            app.keyvalue("xianid", shiid);
//        }
        app.keyvalue("pwd", pwd);
        app.timestamp();
        app.append().submit();
        out.print("1");
    } else {
        out.print("2");
    }

%>

